﻿using ArcFaceSDK.Entity;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using 图书管理系统.Entity;

namespace 图书管理系统.Utils
{
    internal class CommonInfo
    {
        public static List<FaceFeature> ImageFeatureList = new List<FaceFeature>();
        public static List<FaceFeature> MatchImageFeatureList = new List<FaceFeature>();
        /// <summary>
        /// RGB视频帧图像
        /// </summary>
        public static Bitmap rgbVideoBitmap = null;
        /// <summary>
        /// RGB视频帧图像使用锁
        /// </summary>
        public static object rgbVideoImageLocker = new object();
        /// <summary>
        /// RGB 摄像头视频人脸追踪检测结果
        /// </summary>
        public static DictionaryUnit<int, FaceTrackUnit> trackRGBUnitDict = new DictionaryUnit<int, FaceTrackUnit>();
        /// <summary>
        /// RGB 特征搜索尝试次数字典
        /// </summary>
        public static DictionaryUnit<int, int> rgbFeatureTryDict = new DictionaryUnit<int, int>();
        /// <summary>
        /// RGB 活体检测尝试次数字典
        /// </summary>
        public static DictionaryUnit<int, int> rgbLivenessTryDict = new DictionaryUnit<int, int>();
        /// <summary>
        /// VideoPlayer 框的字体
        /// </summary>
        public static Font font = new Font(FontFamily.GenericSerif, 10f, FontStyle.Bold);
        /// <summary>
        /// 红色画笔
        /// </summary>
        public static SolidBrush redBrush = new SolidBrush(Color.Red);
        /// <summary>
        /// 绿色画笔
        /// </summary>
        public static SolidBrush greenBrush = new SolidBrush(Color.Green);
    }
}
